// 根据传入的数字返回对应的星期
export function enWeek(index: number): string {
  switch (index) {
    case 1:
      return '周一';
    case 2:
      return '周二';
    case 3:
      return '周三';
    case 4:
      return '周四';
    case 5:
      return '周五';
    case 6:
      return '周六';
    case 0:
      return '周日';
  }
  return '';
}

// 根据传入的文字返回对应的天气icon
export function weatherIcon(weather: string): string {
  switch (weather) {
    case '多云':
      return 't-icon-duoyun';
    case '晴':
      return 't-icon-qingtian1';
    case '阴':
      return 't-icon-yintian';
    case '小雨':
      return 't-icon-xiaoyu';
    case '暴雨':
      return 't-icon-baoyu';
  }
  return '';
}
